from django.conf.urls import url
from apps.users import views
urlpatterns = [
    # 用户名
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.RegisterUsernameAPIView.as_view(),name='usernamecount'),
    # 手机号
    # /users/phones/(?P<mobile>1[345789]\d{9})/count/
    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$', views.RegisterPhoneAPIView.as_view(), name='usernamecount'),

]
